<?php
if(!defined('BASE_DIR'))die('Cannot access the file !');
/**
 * -+-----------------------------------
 * |PHP Framework
 * |Copyright (c) 2010 jinke.[iblue.cc]
 * |E-mail: mejinke@gmail.com
 * |Date: 2010-03-08
 * |Update: 2010-11-30
 * -+-----------------------------------
 */

//设置inlucde目录
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(BASE_DIR.'/applications/user/models'),
    get_include_path(),
)));
print_r(get_include_path());

/**
 * 框架核心类库目录
 */
define('FRAMEWORK_LIB_DIR',FRAMEWORK_DIR.'classs/');

/**
 * 框架核心函数库目录
 */
define('FRAMEWORK_FUN_DIR',FRAMEWORK_DIR.'functions/');


/**
 * 用户类库扩展目录
 */
define('EXTEND_LIB_DIR',SYSTEM_DIR.'extend/classs/');

/**
 * 用户函数库扩展目录
 */
define('EXTEND_FUN_DIR',SYSTEM_DIR.'extend/functions/');

define('MODEL_DB_TYPE_MYSQL','db_connect');
define('MODEL_DB_TYPE_MONGODB','mongodb_connect');

//载入全局基础类
require FRAMEWORK_LIB_DIR.'Base.class.php';

//载入核心函数库
require FRAMEWORK_FUN_DIR.'Error.list.php';
require FRAMEWORK_FUN_DIR.'Functions.php';
require FRAMEWORK_FUN_DIR.'Message.php';
require FRAMEWORK_FUN_DIR.'Html.php';

//设置时区
date_default_timezone_set(Config::get('date_timezone'));
//程序开加载时间
Functions::RES('run_start_time',Functions::getMicroTime()) ;

?>
